import { get, post, remove, put } from '@/server/request'
import { baseApi, RequestCode } from '@/server/base'


export const dataWash={
    //获取九宫格图片
    getimage(params:{current:number,size:number,photoListId:number|string}){
        const {current,size,photoListId} = params
        return get(`${baseApi}/image/query/${current}/${size}/${photoListId}`)
    },
    //获取被分配的九宫格图片
    queryImage(params:{current:number,size:number,type:number}){
        const {current,size,type}=params
        return get(`${baseApi}/image/query/${current}/${size}`,{type:type})
    },
    //获取图片集下的图片
    getInitImg(params:{id:number|string,current:number,size:number}){
        const {id,current,size} = params
        return get(`${baseApi}/photoList/getImageByPhotoListId/${id}/${current}/${size}`)
    },
    //获取缩略图
    getAbbreviateImg(params:{photoListId:number|string,type:number}){
        const {photoListId,type} =params
        return get(`${baseApi}/image/queryUserPhotoListIdSimp/${type}/${photoListId}`)
    },
    //删除图片
    deleteImg(params:any[]){
        return remove(`${baseApi}/photoList/removeBatch`,params)
    }
}